package org.edu.modules.system.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.Date;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;
import lombok.Data;

import java.io.Serializable;

@Data
@TableName("ve_base_user_access")
@ApiModel(value = "ve_base_user_access对象", description = "用户访问记录")
public class VeBaseUserAccess implements Serializable {
    private static final long serialVersionUID = 1L;
    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty("id")
    private String id;

    @Excel(name = "用户ID", width = 15.0D)
    @ApiModelProperty("用户ID")
    private String userId;

    @Excel(name = "用户密码", width = 15.0D)
    @ApiModelProperty("用户密码")
    private String userPassword;

    @Excel(name = "用户操作", width = 15.0D)
    @ApiModelProperty("用户操作|0:登录,1:验证,2:登出")
    private String opr;

    @Excel(name = "操作结果", width = 15.0D)
    @ApiModelProperty("操作结果|0000:登录成功,2222:验票失败,9999:登录失败”")
    private String status;

    @Excel(name = "ticket", width = 15.0D)
    @ApiModelProperty("ticket")
    private String ticket;

    @Excel(name = "认证次数", width = 15.0D)
    @ApiModelProperty("认证次数")
    private Double checkcount;

    @Excel(name = "用户名", width = 15.0D)
    @ApiModelProperty("用户名")
    private String userName;

    @Excel(name = "登录时间", width = 15.0D)
    @ApiModelProperty("登录时间")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @Excel(name = "最新活动时间", width = 15.0D)
    @ApiModelProperty("最新活动时间")
    private Date updateTime;
}
